package com.home.Entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Proxy;

@Entity
@Proxy(lazy=false)
@Table(name="NGUYENLIEU")
public class NguyenLieu {
	
	@Id
	@Column(name="NVL_MASO")
	private long maSo;
	@Column(name="NVL_TEN")
	private String ten;
	@Column(name="NVL_SOLUONG")
	private int soLuong;
	@Column(name="NVL_DONGIA")
	private BigDecimal donGia;
	@Column(name="NVL_HINHANH")
	private String hinhAnh;
	@Column(name="NVL_SLMIN")
	private int slMin;
	@Column(name="NVL_GHICHU")
	private String ghiChu;
	@ManyToOne
	@JoinColumn(name="NVL_DVT")
	private DVT dvt;
	
	
	public long getMaSo() {
		return maSo;
	}
	public void setMaSo(long maSo) {
		this.maSo = maSo;
	}
	public String getTen() {
		return ten;
	}
	public void setTen(String ten) {
		this.ten = ten;
	}
	public int getSoLuong() {
		return soLuong;
	}
	public void setSoLuong(int soLuong) {
		this.soLuong = soLuong;
	}
	public BigDecimal getDonGia() {
		return donGia;
	}
	public void setDonGia(BigDecimal donGia) {
		this.donGia = donGia;
	}
	public String getHinhAnh() {
		return hinhAnh;
	}
	public void setHinhAnh(String hinhAnh) {
		this.hinhAnh = hinhAnh;
	}
	public int getSlMin() {
		return slMin;
	}
	public void setSlMin(int slMin) {
		this.slMin = slMin;
	}
	public String getGhiChu() {
		return ghiChu;
	}
	public void setGhiChu(String ghiChu) {
		this.ghiChu = ghiChu;
	}
	public DVT getDvt() {
		return dvt;
	}
	public void setDvt(DVT dvt) {
		this.dvt = dvt;
	}
	
	
}
